//
//  NSData+WHSTool.m
//  WHStudy
//
//  Created by GeDaTing on 2021/8/21.
//

#import "NSData+WHSTool.h"

@implementation NSData (WHSTool)

- (id)whs_jsonSerialization
{
    @try {
        NSError *error = nil;
        id object = [NSJSONSerialization JSONObjectWithData:self options:NSJSONReadingMutableContainers error:&error];
        if (!error && object) {
            return object;
        }
    } @catch (NSException *exception) {
        return nil;
    }
}

@end
